package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 会员优惠券实体类
 */
@Component
@Data
@TableName("shop_members_coupons")
public class MemberCoupon {
    @TableId(type = IdType.AUTO)
    private Long id;
    private int status;
    private int getTime;
    private Integer memberId;
    private Integer couponId;
    private int useTime;
    private int orderId;

    @TableField(exist = false)
    private String couponName;
    @TableField(exist = false)
    private int value;




    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getGetTime() {
        return getTime;
    }

    public void setGetTime(int getTime) {
        this.getTime = getTime;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public int getUseTime() {
        return useTime;
    }

    public void setUseTime(int useTime) {
        this.useTime = useTime;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "MemberCoupon{" +
                "id=" + id +
                ", status=" + status +
                ", getTime=" + getTime +
                ", memberId=" + memberId +
                ", couponId=" + couponId +
                ", useTime=" + useTime +
                ", orderId=" + orderId +
                ", couponName='" + couponName + '\'' +
                ", value=" + value +
                '}';
    }
}
